window.pageOne=window.pageOne||{};
pageOne.PageCont=function(){
	var s = this;
	annie.Sprite.call(s);
	/*_a2x_need_start*/s.box=null;s.list=null;s.starGame=null;s.ufo=null;/*_a2x_need_end*/
	annie.initRes(s,"pageOne","PageCont");
	var topBall = new pageOne.Top();
	var midBall = new pageOne.Mid();
	var lastBall = new pageOne.Last();
	s.addEventListener(annie.Event.ADD_TO_STAGE,function (e) {
	    annie.return = "homePage";
        topBall.x = s.stage.viewRect.x;
        topBall.y = 0;
        midBall.x = 750-midBall.width-(750-s.stage.viewRect.width)/2;
        midBall.y = 630;
        lastBall.x = s.stage.viewRect.x;
        lastBall.y = 883;
        s.box.addChild(topBall);
        s.box.addChild(midBall);
        s.box.addChild(lastBall);
    })
    s.list.addEventListener(annie.MouseEvent.CLICK,function (e) {
        annie.globalDispatcher.dispatchEvent("onChangeCont", {cont: "allList"})
    })
    s.starGame.addEventListener(annie.MouseEvent.CLICK,function (e) {
        annie.globalDispatcher.dispatchEvent("onChangeCont", {cont: "gamePage"})
    })
};
A2xExtend(pageOne.PageCont,annie.Sprite);
